import db from '~/db'

db.sync({ alter: true })
    .then(() => {
        console.log('database synced')
    })
    .catch((err) => {
        console.error(err)
    })
    .finally(async () => {
        await db.close()
        process.exit()
    })
